#define _CRT_SECURE_NO_WARNINGS 1

#include "STLNode.h"

void Test1(STLNode* phead);

int main()
{
	
	STLNode* plist = NULL;

	Test1(plist);
	return 0;
}

void Test1(STLNode* phead)
{
	
	STL_PushBack(&phead, 1);
	STL_PushBack(&phead, 2);
	STL_PushBack(&phead, 3);
	STL_Print(phead);

	STL_PushFront(&phead, 11);
	STL_PushFront(&phead, 22);
	STL_PushFront(&phead, 33);
	STL_Print(phead);

	STLNode* ret = STL_Find(phead, 1);
	STL_InsertAfter(ret, 666);
	STL_Print(phead);

	STL_EraseAfter(ret);
	STL_Print(phead);

	STL_Destroy(&phead);
	STL_Print(phead);
	//STL_PopBack(&phead);
	//STL_PopBack(&phead);
	//STL_Print(phead);

	//STL_PopFront(&phead);
	//STL_PopFront(&phead);
	//STL_Print(phead);


}